<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
		<title>top.jsp</title>
		<link rel="stylesheet" type="text/css" href="css/styles.css">
		<script type="text/javascript" src="js/jquery-1.7.1.js"></script>
		<script type="text/javascript" src="js/autoZoomLoadImage.js"></script>
		<script type="text/javascript">
			<s:if test="#session.UserInfo == null">
				location.href = "login.jsp";
			</s:if>
			$(document).ready(function(){
				$("#bannerHead").autoZoomLoadImage(true, 38, 1000,"<%=basePath%>img/loadding.gif");
			});
		</script>
	</head>
	<body bottommargin="0" marginheight="0" marginwidth="0" leftmargin="0" topmargin="0" rightmargin="0">
		<jsp:include page="../message.jsp"></jsp:include>
		<table width="100%">
			<tr>
				<td style="height: 70px;background: url('img/banner/headerbg.jpg') repeat-x;text-align: center;">
					<center>
						<div style="width: 998px;height: 65px;">
							<div style="width: 170px;float: left;height: 100%;">
								<table style="width: 100%;height: 90%;">
									<tr>
										<td style="text-align: left">
											<img src="img/banner/logo.jpg">
										</td>
									</tr>
								</table>
							</div>
							<div style="width: 500px;float: left;height: 100%;position: relative;">
								<s:if test="#session.topMenu == 2">
									<a style="left: 26px;" href="index.jsp" class="bannerMenu2">首页</a>
									<a style="left: 151px;" href="report.jsp" class="bannerMenu1">报表</a>
									<a style="left: 276px;" href="budget.jsp" class="bannerMenu2">预算</a>
									<a style="left: 404px;" href="management.jsp" class="bannerMenu2">设置</a>
								</s:if>
								<s:if test="#session.topMenu == 3">
									<a style="left: 26px;" href="index.jsp" class="bannerMenu2">首页</a>
									<a style="left: 151px;" href="report.jsp" class="bannerMenu2">报表</a>
									<a style="left: 276px;" href="budget.jsp" class="bannerMenu1">预算</a>
									<a style="left: 404px;" href="management.jsp" class="bannerMenu2">设置</a>
								</s:if>
								<s:if test="#session.topMenu == 4">
									<a style="left: 26px;" href="index.jsp" class="bannerMenu2">首页</a>
									<a style="left: 151px;" href="report.jsp" class="bannerMenu2">报表</a>
									<a style="left: 276px;" href="budget.jsp" class="bannerMenu2">预算</a>
									<a style="left: 404px;" href="management.jsp" class="bannerMenu1">设置</a>
								</s:if>
								<s:else>
									<a style="left: 26px;" href="index.jsp" class="bannerMenu1">首页</a>
									<a style="left: 151px;" href="report.jsp" class="bannerMenu2">报表</a>
									<a style="left: 276px;" href="budget.jsp" class="bannerMenu2">预算</a>
									<a style="left: 404px;" href="management.jsp" class="bannerMenu2">设置</a>
								</s:else>
								
							</div>
							<div style="width: 280px;float: right;height: 100%;">
								<table style="width: 100%;height: 90%;">
									<tr>
										<td>
											<table width="100%" height="42px">
												<tr>
													<td rowspan="3" width="50px">
														<table bgcolor="#ffffff" style="border: 1px #9d9d9d solid;border-radius:5px;width: 42px;height: 42px;" cellspacing="0">
															<tr>
																<td align="center">
																	<center>
																		<div style="width: 38px;height: 38px;overflow: hidden;border-radius:5px;">
																			<table width="100%" height="100%" cellpadding="0" cellspacing="0">
																				<tr>
																					<td align="center">
																						<img id="bannerHead" style="border-radius:5px;cursor: pointer;" src="${UserInfo.headPhoto }">
																					</td>
																				</tr>
																			</table>
																		</div>
																	</center>
																</td>
															</tr>
														</table>
													</td>
													<td colspan="2" style='font: 12px/1.5em "宋体", Tahoma, Helvetica, Arial, sans-serif;font-size: 14px;color: #fad189;text-align: left'>
														${UserInfo.nickName }
													</td>
												</tr>
												<tr>
													<td style='font: 12px/1.5em "宋体", Tahoma, Helvetica, Arial, sans-serif;font-size: 14px;color: #fad189;text-align: left'>
														积分：${UserInfo.score }
													</td>
													<td>
														<a href="userInfo!remove.do" style="font: 12px/1.5em '宋体', Tahoma, Helvetica, Arial, sans-serif;font-size: 14px;color: #fad189;">注销</a>
													</td>
												</tr>
											</table>
										</td>
									</tr>
								</table>
							</div>
						</div>
					</center>
				</td>
			</tr>
		</table>
	</body>
</html>
